package com.cly.dto;

import com.cly.entity.Problem;
import com.cly.entity.ProblemOption;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.util.List;

/**
 * 试题添加DTO
 *
 * @author by 春风能解释
 * <p>
 * 2024/10/4
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "试题添加DTO", description = "添加试题的实体类")
public class ProblemInsertDto extends Problem {

    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = 4196802658744324383L;
    /**
     * 选项列表
     */
    @Schema(description = "选项列表")
    private List<ProblemOption> options;
}
